package com.tenement.mybatis.entity;

import java.io.Serializable;

public class Photo implements Serializable {
    private Integer pId;

    private String hPhotoid;

    private String pPhotoUrl;

    private String pPhotoName;

    private Integer pAlbumid;

    private static final long serialVersionUID = 1L;

    public Integer getpId() {
        return pId;
    }

    public String gethPhotoid() {
		return hPhotoid;
	}

	public void sethPhotoid(String hPhotoid) {
		this.hPhotoid = hPhotoid;
	}

	public void setpId(Integer pId) {
        this.pId = pId;
    }

    public String getpPhotoUrl() {
        return pPhotoUrl;
    }

    public void setpPhotoUrl(String pPhotoUrl) {
        this.pPhotoUrl = pPhotoUrl == null ? null : pPhotoUrl.trim();
    }

    public String getpPhotoName() {
        return pPhotoName;
    }

    public void setpPhotoName(String pPhotoName) {
        this.pPhotoName = pPhotoName == null ? null : pPhotoName.trim();
    }

    public Integer getpAlbumid() {
        return pAlbumid;
    }

    public void setpAlbumid(Integer pAlbumid) {
        this.pAlbumid = pAlbumid;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", pId=").append(pId);
        sb.append(", hId=").append(hPhotoid);
        sb.append(", pPhotoUrl=").append(pPhotoUrl);
        sb.append(", pPhotoName=").append(pPhotoName);
        sb.append(", pAlbumid=").append(pAlbumid);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}